﻿using NUnit.Core;
using NUnit.Core.Extensibility;
using PC.PickleJar.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace PC.PickleJar.NUnit
{
	public class TestDecorator : ITestDecorator
	{
		public TestDecorator()
		{
		}

		public Test Decorate(Test test, MemberInfo member)
		{
			var result = test;
			var testMethod = test as TestMethod;

			if (testMethod != null)
			{
				result = new TestMethodWrapper(member as MethodInfo);
			}

			return result;
		}
	}
}
